<template>
    <a-sub-menu key="PMS" v-if="userStore.isAdmin">
        <template #title>
            <span>
                <SafetyOutlined />
                <span>项目管理</span>
            </span>
        </template>
        <a-menu-item key="/pms/order">
            <router-link to="/pms/order">
                <AccountBookOutlined />
                <span>订单管理</span>
            </router-link>
        </a-menu-item>
        <a-menu-item key="/pms/category">
            <router-link to="/pms/category">
                <AppstoreAddOutlined />
                <span>分类管理</span>
            </router-link>
        </a-menu-item>
        <a-menu-item key="/pms/project">
            <router-link to="/pms/project">
                <BarsOutlined />
                <span>项目列表</span>
            </router-link>
        </a-menu-item>
        <!-- <a-menu-item key="/bpmn/modeler">
            <router-link to="/bpmn/modeler">
                <BranchesOutlined />
                <span>BPMN2</span>
            </router-link>
        </a-menu-item> -->
    </a-sub-menu>
</template>
<script setup>
import {
    SafetyOutlined,
    BranchesOutlined,
    AccountBookOutlined,
    AppstoreAddOutlined,
    BarsOutlined
} from '@ant-design/icons-vue'
import useUserStore from '@/store/modules/user';
const userStore = useUserStore();
const props = defineProps({
    theme: {
        type: String,
        default: 'light'
    }
})
</script>